package com.yisoo.ubag.app.feign;


import com.yisoo.common.to.CheckDeviceIsOpenTo;
import com.yisoo.common.to.RefreshBagStatusTo;
import com.yisoo.ubag.app.vo.DevEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("ubag-product")
public interface ProductFeignService {

    @GetMapping("/feign/get/dev/byuid/{uid}")
    List<DevEntity> getDevByUid(@PathVariable("uid")Long uid);

    @RequestMapping("/feign/get/rel/{devid}")
    RefreshBagStatusTo getRel(@PathVariable("devid") Long  devid);
}
